#ifndef CServo_h
#define CServo_h

#include "WProgram.h"

class CServo
{
  public:
    CServo(int pin);
    void writeSpeed(int direction /*1=clockwise, 2=counterclockwise*/, int speedpercent /*0-100*/);
	void stop();
  private:
    int _pin;
	int direction;
	int speedpercent;
	int clockwise_speed;
	int cclockwise_speed;
};

#endif
